package com.springframework.returnstheformat;
import java.util.List;

/**
 * @author Administrator
 */
public class PageResult<M> {

    /***
     * 总记录数
     */
    private Long total;
    /**
     * 记录
     */
    private List<M> rows;

    public PageResult(Long total, List<M> rows) {
        this.total = total;
        this.rows = rows;
    }

    public PageResult() {
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<M> getRows() {
        return rows;
    }

    public void setRows(List<M> rows) {
        this.rows = rows;
    }
}
